'use strict';

const Controller = require('egg').Controller;

class UserService extends Controller {
  async login(username,pwd) {
   // console.log(username,pwd)
    return await this.app.mysql.query('select * from login where username = ? and pwd = ?',[username,pwd])
   
  }
}

module.exports = UserService;